// src/user/dto/wechat-register.dto.ts
import { IsString, IsNotEmpty, IsOptional } from 'class-validator';

export class WechatRegisterDto {
    @IsString()
    @IsNotEmpty({ message: 'WeChat ID is required' })
    readonly wechatId: string;

    @IsString()
    @IsNotEmpty({ message: 'Nick name is required' })
    readonly nickName: string;

    @IsString()
    @IsOptional()
    readonly avatar?: string;

    @IsString()
    @IsOptional()
    readonly note?: string;
}